package com.java.testdemo1;

public class Animal {
//属性
	String animalName;
	private String animalColor;
	private String animalSex;
	//
	public Animal(String animalName, String animalColor, String animalSex) {
		super();
		this.animalName = animalName;
		this.animalColor = animalColor;
		this.animalSex = animalSex;
	}
	//
	public Animal() {
		super();
		
	}
	//方法
	public void doEating() {
	
		System.out.println(this.animalName+" is eating...");
	}
	public void doSleeping() {
		System.out.println(this.animalName+" is sleeping...");
	}
	public Object dohunting() {
		System.out.println("捕猎");
		return null;
		
	}
	public Object dohuntingPerson() {
		System.out.println("捕猎");
		return null;
		
	}
	
	//
	public String getAnimalName() {
		return animalName;
	}
	public void setAnimalName(String animalName) {
		this.animalName = animalName;
	}
	public String getAnimalColor() {
		return animalColor;
	}
	public void setAnimalColor(String animalColor) {
		this.animalColor = animalColor;
	}
	public String getAnimalSex() {
		return animalSex;
	}
	public void setAnimalSex(String animalSex) {
		this.animalSex = animalSex;
	}
}
